FROM openjdk:8-jre-alpine
RUN echo -e "http://mirrors.aliyun.com/alpine/v3.9/main/" > /etc/apk/repositories
RUN apk add tzdata && cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && echo "Asia/Shanghai" > /etc/timezone && apk del tzdata
RUN apk --update add curl bash ttf-dejavu && rm -rf /var/cache/apk/*
ADD target/service-front.jar /root/app.jar

ENTRYPOINT ["java","-jar","-Djava.security.egd=file:/dev/./urandom","-Duser.timezone=GMT+08","/root/app.jar","--spring.profiles.active=docker","-c"]